package com.wbc.play;

import java.util.*;

/**
 * @author wangbingchen
 * @Description
 * @create 2021-12-03 15:28
 */
public class CpPlay {
    /**
     * 彩票随机生成器
     * 红球：[3, 5, 11, 25, 26, 29]
     * 蓝球：[15]
     */
    public static void main(String[] args) {

        Set<Integer> set = new TreeSet<>();
        Random random = new Random();
        while (set.size()<6){
            int i = random.nextInt(32)+1;
            set.add(i);
        }
        System.out.println("红球："+set);
        int i = random.nextInt(16)+1;
        System.out.println("蓝球：["+i+"]");

    }
}
